package com.xinhe.web.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "组团购买详情查询视图")
public class TeamBuyView {
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("发起人标识")
    private Long leaderUserId;
    @ApiModelProperty("拼团商品id")
    private Long teamGoodsId;
    @ApiModelProperty("商品id")
    private Long goodsId;
    @ApiModelProperty("所需拼团人数")
    private Integer memberAmount;
    @ApiModelProperty("加入人数")
    private Integer joinAmount;
    @ApiModelProperty("支付人数")
    private Integer payAmount;
    @ApiModelProperty("状态")
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("开始时间")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("结束时间")
    private Date endTime;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("发起人名称")
    private String leaderUsername;
    @ApiModelProperty("发起人头像")
    private String leaderIconPath;
}
